const express = require('express')
const app = express()

app.use((req,res,next) => {
    req.add = '海棠花未眠!'
    next()
})

app.get('/',(req,res) => {
    console.log('第一个中间共享成功');
    res.send('凌晨四点钟我看见' + req.add)
})

app.get('/index',(req,res) => {
    console.log('第二个中间共享成功');
    res.send('凌晨五点钟' + req.add)
})


app.listen(80,() => {
    console.log('启动');
})